package cn.fuxi2022.feign.api;

import cn.fuxi2022.model.empty.auth.GroupStudent;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "group-auth", contextId = "auth")
public interface GroupAuth {
    @PostMapping("/gatewayAuthentication/checkToken")
    boolean checkUriAndToken(@RequestParam("uri") String uri, @RequestParam("token") String token);


    @RequestMapping("/groupStudent/getStudent/{id}")
    GroupStudent getStudent(@PathVariable("id") String id);

    @GetMapping("/user/get/phone/{id}")
    String getPhoneById(@PathVariable("id") String id);
}